library = {
	util = {
		TraceLine = [[function(...)
			if type(arg[1]) == "table" then
				if type(arg[1].filter) == "table" then
					if type(arg[1].filter.num) == "number" then
						arg[1].filter = __entity.GetEnt(arg[1].filter)
					else
						for k,v in pairs(arg[1].filter) do
							if type(v.num) == "number" then
								arg[1].filter[k] = __entity.GetEnt(v)
							end
						end
					end
				end
			end
			
			local out = util.TraceLine(unpack(arg))
			local ent = out.Entity
			out.Entity = __entity.GetNent(ent)
			return out
		end]],
	},
}